import { BasicColumn, FormSchema } from '/@/components/Table';

export const useConfigsQueryColumns = (): BasicColumn[] => {
  return [
    { title: '配置ID', dataIndex: 'configId' },
    { title: '配置名称', dataIndex: 'configName' },
    { title: '配置键名', dataIndex: 'configKey' },
    { title: '配置值', dataIndex: 'configValue' },
  ];
};

export const useConfigsQuerySearchForm = (): FormSchema[] => {
  return [{ field: 'query', label: '', component: 'Input' }];
};

export const useConfigsUpdateSchemaForm = (): FormSchema[] => {
  return [
    { field: 'configId', label: '', component: 'Input' },
    { field: 'configValue', label: '', component: 'Input' },
  ];
};
